package com.special.threademo.jvm;

import java.util.ArrayList;

/**
 * @author liuYC
 * @ClassName HeapDemo
 * @Description TODO
 * @date 2021/4/26 18:50
 *
 * oom heap demo
 *
 */
public class HeapDemo {
    static class OomObject {

    }

    public static void main(String[] args) {
        ArrayList<OomObject> oomObjects = new ArrayList<>();
        while (true) {
            oomObjects.add(new OomObject());
        }
    }
}
